Comparing Consecutive Values In An Array Without Using Indices In Ruby